┌────────────────────────────────┐ │ ░░░ ░░▓ ░▓▓ ███ ▓▓░ ▓░░ │ │ ~ M O O N ~ │ └────────────────────────────────┘
prd-web-01.centraldc.gr
LOCATION:
/usr/lib/python3.12/site-packages/tuned/hardware
☗ ROOT
↻ REFRESH
✎ EDIT FILE
EDITING: device_matcher_udev.py
from . import device_matcher import re __all__ = ["DeviceMatcherUdev"] class DeviceMatcherUdev(device_matcher.DeviceMatcher): def match(self, regex, device): """ Match a device against the udev regex in tuning profiles. device is a pyudev.Device object """ properties = '' try: items = device.properties.items() except AttributeError: try: items = device.items() except AttributeError: return False for key, val in sorted(list(items)): properties += key + '=' + val + '\n' return re.search(regex, properties, re.MULTILINE) is not None
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📁 __pycache__/
DIR
—
2026-04-06 07:16
📄 __init__.py
PY
90 B
2025-08-24 21:48
EDIT
📄 device_matcher.py
PY
1.5 KB
2025-08-24 21:48
EDIT
📄 device_matcher_udev.py
PY
581 B
2025-08-24 21:48
EDIT
📄 inventory.py
PY
4.4 KB
2025-08-24 21:48
EDIT